aboutsummaryrefslogtreecommitdiff
path: root/sqlite3_windows.c
diff options
context:
space:
mode:
authorGraeme Connell <gconnell@google.com>2013-05-09 11:37:39 -0600
committerGraeme Connell <gconnell@google.com>2013-05-09 11:37:39 -0600
commit9c24784fe14567df778b2282ee25578d263c9afc (patch)
tree333ef990cbbb8a0f86194f5c3b2d2a564f6cfc8b /sqlite3_windows.c
parentTreat int as 64bit (diff)
downloadgolite-9c24784fe14567df778b2282ee25578d263c9afc.tar.gz
golite-9c24784fe14567df778b2282ee25578d263c9afc.tar.xz
Use file in os.TempDir() for tests.
Sometimes it's best to not create files in the directories where code lives... for example, that directory might be read-only, or folks might be using source-control or build systems that disallow that behavior. To fix this, we create a file in the temp directory and use it instead. We don't use ioutil.TempFile(), since that actually creates the file, and we'd like the tests to run as if the file had never existed. We use 16 bytes from crypto/rand to avoid people doing bad things with symlinks in the temp directory.
Diffstat (limited to 'sqlite3_windows.c')
0 files changed, 0 insertions, 0 deletions