We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab957ce commit 968f8ecCopy full SHA for 968f8ec
1 file changed
test/blackbox-tests/test-cases/cram/subprocess.t
@@ -7,8 +7,7 @@ project with a single cram test.
7
8
We create a file for tracking the PID of a subprocess.
9
10
- $ cat > pid.txt
11
- $ export FILE=$(realpath ./pid.txt)
+ $ FILE=$(realpath ./pid.txt)
12
13
We create a cram test that spawns a subprocess and records its PID in the file
14
we gave before.
@@ -20,10 +19,12 @@ we gave before.
20
19
21
We can now run this test, which will record its PID in the file.
22
23
- $ dune build @mycram
+ $ dune runtest mycram.t
24
25
The test finished successfully, now we make sure that the PID was correctly
26
terminated.
27
+ $ [ -s $FILE ] && echo pid file created
28
+ pid file created
29
$ ps -p $(cat $FILE) > /dev/null || echo "Process terminated"
30
Process terminated
0 commit comments