Skip to content

Commit 68abee5

Browse files
committed
Don't buffer log output, disable certain Windows tests until we can get them working.
1 parent 0463708 commit 68abee5

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

tools/ippeveprinter.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,8 @@ main(int argc, // I - Number of command-line args
715715
perror(logfile);
716716
return (1);
717717
}
718+
719+
setbuf(fp, NULL);
718720
}
719721

720722
// Run the print service...

vcnet/ippeveprinter.vcxproj.user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
4-
<LocalDebuggerCommandArguments>-vv -r _print,_universal -f application/pdf,image/jpeg,image/pwg-raster,image/urf "ippeveprinter test"</LocalDebuggerCommandArguments>
4+
<LocalDebuggerCommandArguments>-vv -r _print,_universal -f application/pdf,image/jpeg,image/pwg-raster,image/urf "ippeveprinter test" -L test.log</LocalDebuggerCommandArguments>
55
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
66
<LocalDebuggerEnvironment>CUPS_DEBUG_LOG=-;CUPS_DEBUG_LEVEL=9;CUPS_DEBUG_FILTER=sspi</LocalDebuggerEnvironment>
77
</PropertyGroup>

vcnet/run-tests.ps1

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ cd $path
2121
.\testfile.exe
2222
.\testhttp.exe
2323

24-
$env:CUPS_DEBUG_LOG="test-debug.log"
25-
$env:CUPS_DEBUG_LEVEL="4"
26-
$env:CUPS_DEBUG_FILTER="^(http|_http|ipp|_ipp|cupsDNSSD|cupsCreate|cupsDo|cupsGet|cupsSend)"
24+
#$env:CUPS_DEBUG_LOG="test-debug%d.log"
25+
#$env:CUPS_DEBUG_LEVEL="4"
26+
#$env:CUPS_DEBUG_FILTER="^(http|_http|ipp|_ipp|cupsDNSSD|cupsCreate|cupsDo|cupsGet|cupsSend)"
2727

28-
$eve = Start-Job -NoNewWindow -FilePath .\ippeveprinter.exe -ArgumentList "-vvv -a ../../../tools/test.conf -n localhost 'Test Printer'" >test.log"
28+
#Start-Process -FilePath ".\ippeveprinter.exe" -ArgumentList "-vvv","-a","../../../tools/test.conf","-L","test.log","'Test Printer'"
2929

30-
Remove-Variable $env:CUPS_DEBUG_LOG
30+
#.\ippfind.exe -T 30 --literal-name "Test Printer" --exec ipptool.exe -V 2.0 -tIf ../../../examples/document-letter.pdf '{}' ../../../examples/ipp-2.0.test ../../../examples/pwg5100.1.test ../../../examples/pwg5100.2.test ../../../examples/pwg5100.7.test ../../../examples/pwg5100.13.test ";"
3131

32-
.\ippfind.exe -T 30 --literal-name "Test Printer" --exec ipptool.exe -V 2.0 -tIf ../../../examples/document-letter.pdf '{}' ../../../examples/ipp-2.0.test ../../../examples/pwg5100.1.test ../../../examples/pwg5100.2.test ../../../examples/pwg5100.7.test ../../../examples/pwg5100.13.test ";"
33-
34-
Stop-Job $eve
32+
#Stop-Process -Name .\ippeveprinter.exe
3533

34+
cd ..\..

0 commit comments

Comments
 (0)