Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Sep 21, 2009
  1. test-genrandom: ensure stdout is set to _O_BINARY on Windows

    Johannes Sixt authored committed
    Commit a6ca8c6 (Set _O_BINARY as default fmode for both MinGW and MSVC)
    removed the definition of _CRT_fmode from mingw.c. Before this commit,
    since test-genrandom is linked against libgit.a, the MinGW process
    initialization code would pick up that definition of _CRT_fmode, which was
    initialized to _O_BINARY. After this commit, however, text mode is used
    for std(in|out|err) because it is the default in absence of _CRT_fmode.
    In order to fix that, we must use git-compat-util.h, which overrides
    main() to set the mode to binary.
    Signed-off-by: Johannes Sixt <>
    Signed-off-by: Junio C Hamano <>
Commits on Apr 23, 2009
  1. @bebarino

    test-genrandom: Add newline to usage string

    bebarino authored committed
    A minor fix to place the terminal input on a new line if test-genrandom
    is run with no arguments.
    Signed-off-by: Stephen Boyd <>
    Signed-off-by: Junio C Hamano <>
Commits on Apr 12, 2007
  1. simple random data generator for tests

    Nicolas Pitre authored Junio C Hamano committed
    Reliance on /dev/urandom produces test vectors that are, well, random.
    This can cause problems impossible to track down when the data is
    different from one test invokation to another.
    The goal is not to have random data to test, but rather to have a
    convenient way to create sets of large files with non compressible and
    non deltifiable data in a reproducible way.
    Signed-off-by: Nicolas Pitre <>
    Signed-off-by: Junio C Hamano <>
Something went wrong with that request. Please try again.