about summary refs log tree commit diff homepage
path: root/test/Runtime/POSIX/Isatty.c
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2014-01-21 05:41:25 -0800
committerCristian Cadar <c.cadar@imperial.ac.uk>2014-01-21 05:41:25 -0800
commite49c1e1958e863195b01d99c92194289b4034bbb (patch)
treeee305c933ea7b653f769fe209601ca963938e16d /test/Runtime/POSIX/Isatty.c
parentf626bdb1905c4d56fdcca04cd6ee84acb7597431 (diff)
parentebc387f1181ca39cd72fe8ef27a535cd0c674bcf (diff)
downloadklee-e49c1e1958e863195b01d99c92194289b4034bbb.tar.gz
Merge pull request #92 from delcypher/fix_llvm-lit
Move testing infrastructure to llvm-lit and completly remove all DejaGNU support
Diffstat (limited to 'test/Runtime/POSIX/Isatty.c')
-rw-r--r--test/Runtime/POSIX/Isatty.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/Runtime/POSIX/Isatty.c b/test/Runtime/POSIX/Isatty.c
index 293ee653..bd514d48 100644
--- a/test/Runtime/POSIX/Isatty.c
+++ b/test/Runtime/POSIX/Isatty.c
@@ -1,9 +1,9 @@
 // RUN: %llvmgcc %s -emit-llvm -O0 -c -o %t.bc
 // RUN: %klee --libc=uclibc --posix-runtime %t.bc --sym-files 0 10 --sym-stdout 2>%t.log
-// RUN: test -f klee-last/test000001.ktest
-// RUN: test -f klee-last/test000002.ktest
-// RUN: test -f klee-last/test000003.ktest
-// RUN: test -f klee-last/test000004.ktest
+// RUN: test -f %T/klee-last/test000001.ktest
+// RUN: test -f %T/klee-last/test000002.ktest
+// RUN: test -f %T/klee-last/test000003.ktest
+// RUN: test -f %T/klee-last/test000004.ktest
 // RUN: grep -q "stdin is a tty" %t.log
 // RUN: grep -q "stdin is NOT a tty" %t.log
 // RUN: grep -q "stdout is a tty" %t.log
@@ -15,16 +15,21 @@
 #include <stdio.h>
 #include <assert.h>
 
+// FIXME: Use new FileCheck to check klee's output
 int main(int argc, char** argv) {
   int fd0 = 0; // stdin
   int fd1 = 1; // stdout
 
   int r = isatty(fd0);
+  // CHECK-DAG: stdin is a tty
+  // CHECK-DAG: stdin is NOT a tty
   if (r) 
     fprintf(stderr, "stdin is a tty\n");
   else fprintf(stderr, "stdin is NOT a tty\n");
   
   r = isatty(fd1);
+  // CHECK-DAG: stdout is a tty
+  // CHECK-DAG: stdout is NOT a tty
   if (r) 
     fprintf(stderr, "stdout is a tty\n");
   else fprintf(stderr, "stdout is NOT a tty\n");