1 RUN: %cpp_compiler %S/SpamyTest.cpp -o %t-SpamyTest
3 RUN: %run %t-SpamyTest -runs=1 2>&1 | FileCheck %s --check-prefix=FD_MASK_0
4 RUN: %run %t-SpamyTest -runs=1 -close_fd_mask=0 2>&1 | FileCheck %s --check-prefix=FD_MASK_0
5 RUN: %run %t-SpamyTest -runs=1 -close_fd_mask=1 2>&1 | FileCheck %s --check-prefix=FD_MASK_1
6 RUN: %run %t-SpamyTest -runs=1 -close_fd_mask=2 2>&1 | FileCheck %s --check-prefix=FD_MASK_2
7 RUN: %run %t-SpamyTest -runs=1 -close_fd_mask=3 2>&1 | FileCheck %s --check-prefix=FD_MASK_3
9 FD_MASK_0-DAG: PRINTF_STDOUT
10 FD_MASK_0-DAG: PRINTF_STDERR
11 FD_MASK_0-DAG: STREAM_COUT
12 FD_MASK_0-DAG: STREAM_CERR
15 FD_MASK_1-NOT: PRINTF_STDOUT
16 FD_MASK_1-DAG: PRINTF_STDERR
17 FD_MASK_1-NOT: STREAM_COUT
18 FD_MASK_1-DAG: STREAM_CERR
21 FD_MASK_2-DAG: PRINTF_STDOUT
22 FD_MASK_2-DAG: STREAM_COUT
24 FD_MASK_2-NOT: PRINTF_STDERR
25 FD_MASK_2-NOT: STREAM_CERR
27 FD_MASK_3-NOT: PRINTF_STDOUT
28 FD_MASK_3-NOT: PRINTF_STDERR
29 FD_MASK_3-NOT: STREAM_COUT
30 FD_MASK_3-NOT: STREAM_CERR