Giter Site home page Giter Site logo

ptest's People

Contributors

hellerve avatar orangeduck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ptest's Issues

ptest output does not fallback on the correct ANSI color

Hello!

I was just building your other MPC project for fun and profit using Jenkins and the ptest output unexpectedly mixes colors at some point. I didn't investigate further but I would say it's just because you assume a different default color at some point. Screenshot attached. This is a very minor issue, but simple to fix so why not.

screen shot 2015-02-19 at 17 45 44

That being said, I discovered ptest at the same time and it seems great. I'll try to give a shot for my next C project.

Segmentation Fault whenever nested functions tests are used

My gcc -v output:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 7.2.1 20171128 (GCC)

When I simply run make it produces such an output:

gcc -ansi -Wall -Werror -Wno-unused -g example.c ptest.c -o example
./example; true

    +-------------------------------------------+
    | ptest          MicroTesting Magic for C   |
    |                                           |
    | http://github.com/orangeduck/ptest        |
    |                                           |
    | Daniel Holden ([email protected]) |
    +-------------------------------------------+


  ===== Suite Basic =====

    | Test Maths ... Failed! 

        1. Segmentation Fault

    | Stopping Execution.
gcc -ansi -Wall -Werror -Wno-unused -g example2.c ptest.c -o example2
./example2; true

    +-------------------------------------------+
    | ptest          MicroTesting Magic for C   |
    |                                           |
    | http://github.com/orangeduck/ptest        |
    |                                           |
    | Daniel Holden ([email protected]) |
    +-------------------------------------------+


  ===== Suite Basic =====

    | Test Maths ... Passed!
    | Test Strings ... Passed!


  ===== Suite Other =====

    | Test Stuff ... Passed!
    | Test Failure ... Failed! 

        1. Assert [ false == true ] (example2.c:26)


  +---------------------------------------------------+
  |                      Summary                      |
  +---------++------------+-------------+-------------+
  | Suites  || Total    2 | Passed    1 | Failed    1 |
  | Tests   || Total    4 | Passed    3 | Failed    1 |
  | Asserts || Total    9 | Passed    8 | Failed    1 |
  +---------++------------+-------------+-------------+

      Total Running Time: 0.000s

As far as I can see my gcc is able to compile nested functions, but when this function call is made (I think at ptest.c:293) a segfault occurs.

What am I doing wrong or is it a bug?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.