Skip to content

Commit

Permalink
Minor test improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
negrutiu committed Aug 4, 2024
1 parent b48a788 commit 93e512f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions tests/NScurl-Debug.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Var /global DLL
!include "Sections.nsh"

!include "FileFunc.nsh"
!insertmacro GetFileName
!insertmacro GetOptions
!insertmacro GetParameters

Expand Down Expand Up @@ -714,7 +715,9 @@ juBzebaanR+LTh++Bleb9I0HxFFCTwlQhxo/bfY=$\n\
StrCpy $R0 '$R0_$0'
${EndIf}

DetailPrint 'NScurl::http "${url}" "$R0.html"'
${GetFileName} $R0 $0
DetailPrint 'NScurl::http "${url}" "$0"'

!insertmacro STACK_VERIFY_START
Push "/END"
${If} `${cacert}` != ""
Expand All @@ -740,7 +743,7 @@ juBzebaanR+LTh++Bleb9I0HxFFCTwlQhxo/bfY=$\n\
Push /TAG
Push "@ID@"
Push /RETURN
Push "$R0.html"
Push memory
Push "${url}"
Push "GET"
CallInstDLL $DLL http
Expand Down
8 changes: 6 additions & 2 deletions tests/NScurl-Test.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
!include "LogicLib.nsh"
!include "Sections.nsh"

!include "FileFunc.nsh"
!insertmacro GetFileName

!define /ifndef NULL 0
!define TEST_FILE "$SYSDIR\lz32.dll" ; ...random file that exists in every Windows build

Expand Down Expand Up @@ -459,7 +462,8 @@ juBzebaanR+LTh++Bleb9I0HxFFCTwlQhxo/bfY=$\n\
StrCpy $R0 '$R0_$0'
${EndIf}

DetailPrint 'NScurl::http "${url}" "$R0.html"'
${GetFileName} $R0 $0
DetailPrint 'NScurl::http "${url}" "$0"'

Push "/END"
${If} `${cacert}` != ""
Expand All @@ -485,7 +489,7 @@ juBzebaanR+LTh++Bleb9I0HxFFCTwlQhxo/bfY=$\n\
Push /TAG
Push "@ID@"
Push /RETURN
Push "$R0.html"
Push memory
Push "${url}"
Push "GET"
CallInstDLL "$PLUGINSDIR\NScurl.dll" http
Expand Down

0 comments on commit 93e512f

Please sign in to comment.