OBS-URL: https://build.opensuse.org/package/show/devel:tools:statica/klee?expand=0&rev=32
43 lines
1.1 KiB
Diff
43 lines
1.1 KiB
Diff
From: Martin Nowack <martin_nowack@tu-dresden.de>
|
|
Date: Thu, 12 Oct 2017 21:59:16 +0200
|
|
Subject: Cleanup test cases
|
|
Patch-mainline: no
|
|
|
|
* remove assert(!errno): errno being 0 cannot be assumed if no error
|
|
occured
|
|
* added missing header
|
|
|
|
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
|
|
---
|
|
test/Runtime/POSIX/DirSeek.c | 1 -
|
|
test/Runtime/POSIX/Ioctl.c | 1 +
|
|
2 files changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/test/Runtime/POSIX/DirSeek.c b/test/Runtime/POSIX/DirSeek.c
|
|
index 3908b4e28879..155c80b92d1e 100644
|
|
--- a/test/Runtime/POSIX/DirSeek.c
|
|
+++ b/test/Runtime/POSIX/DirSeek.c
|
|
@@ -43,7 +43,6 @@ int main(int argc, char **argv) {
|
|
// Go to end, then back to 2nd
|
|
while (de)
|
|
de = readdir(d);
|
|
- assert(!errno);
|
|
seekdir(d, pos);
|
|
assert(telldir(d) == pos);
|
|
de = readdir(d);
|
|
diff --git a/test/Runtime/POSIX/Ioctl.c b/test/Runtime/POSIX/Ioctl.c
|
|
index e8220276f8be..f1caaf77dea2 100644
|
|
--- a/test/Runtime/POSIX/Ioctl.c
|
|
+++ b/test/Runtime/POSIX/Ioctl.c
|
|
@@ -5,6 +5,7 @@
|
|
#include <assert.h>
|
|
#include <fcntl.h>
|
|
#include <sys/stat.h>
|
|
+#include <sys/ioctl.h>
|
|
#include <termios.h>
|
|
#include <asm/ioctls.h>
|
|
#include <errno.h>
|
|
--
|
|
2.15.0
|
|
|