UT-SE-Research/iDFlakies

Windows Os Error on InstrumentingSmartRunner.runWithCp

Opened this issue · 0 comments

Run1Error.txt
Run2Error.txt
I'm using the Windows OS and I faced some errors with iDFlakies to run tests. I attached the log file as Run1Error.txt and then changed the code to solve the problem. I changed the code of InstrumentingSmartRunner and function runWithCp to this one:

`public Try runWithCp(final String cp, final Stream testOrder) {
// Save stdout,stderr, and run result to a file
//final Try<Try> result = TempFiles.withTempFile(outputPath -> {
try {
Path outputPath = null;
File tmp = File.createTempFile("temp", ".tmp");
String pathstr = tmp.getAbsolutePath();
outputPath = Paths.get(pathstr);
writeTo(outputPath);

            final Try<TestRunResult> testRunResultTry = super.runWithCp(cp, testOrder);

            if (testRunResultTry.isSuccess()) {
                RunnerPathManager.outputResult(outputPath, testRunResultTry.get());
            }
            tmp.deleteOnExit();
            return testRunResultTry;
        } catch (Exception e){
            return new Failure<>(e);
        }
    //});

    //return result.get();
}`

But another error occurred that is attached to this issue as **** .this error is the same as previous but in the SmartRunner in edu.illinois.cs.testrunner.runner package that is not accessible by me to change.