forked from chapel-lang/chapel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sporadic Oct23Tutorial failures (chapel-lang#23727)
Fix a couple of sporadic failures on Oct23tutorial tests: * Fix a sporadic failure in `exercises/Oct2023tutorial/parfilekmer.chpl` due to output order being non-deterministic. A prediff is added to sort the output. * Fix a sporadic timeout in `exercises/Oct2023tutorial/04-atomic-type.chpl`. With the original implementation, task 1 reset the barrier before other tasks finished waiting causing them to wait indefinitely. (Also lowers the amount of time spent sleeping to speed up test.) The test is no longer timing out - testing with 1000 trials. [ trivial - not reviewed ]
- Loading branch information
Showing
3 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Number of unique k-mers in DataDir/kmer_large_input_half.txt is 252 | ||
|
||
Number of unique k-mers in DataDir/kmer_large_input.txt is 255 | ||
|
||
Number of unique k-mers in DataDir/kmer_large_input.txt is 255 | ||
Number of unique k-mers in DataDir/kmer_large_input_half.txt is 252 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
# sort output to ensure task IDs are listed in a deterministic order | ||
outfile=$2 | ||
|
||
sort $outfile > $outfile.2 | ||
mv $outfile.2 $outfile |